package com.hebust.service;


import com.hebust.entity.Admins;
import com.hebust.utils.ResultVo;

public interface AdminsService {
    ResultVo login(String username, String password);

    // 管理员的增删查改

    ResultVo show_admins(String username, int pageNum);

    ResultVo add_admins(Admins admins);

    ResultVo delete_admins(int id);

    ResultVo update_admins(Admins admins);

    // 学院管理的增删查改
    ResultVo show_department(String name, int pageNum);

    ResultVo add_department(String name);

    ResultVo edit_department(int id, String name);

    ResultVo delete_department(int id);

    //专业管理的增删查改
    ResultVo show_processional(String name, int pageNum);

    ResultVo add_processional(int id, String name);

    ResultVo search();

    ResultVo edit_processional(int id, String name, int region);

    ResultVo delete_processional(int id);

    // 班级管理的增删改查

    ResultVo show_class(String name, int pageNum);

    ResultVo search_class();

    ResultVo add_class(int id, String name, int grade);

    ResultVo edit_class(int id, String name, int grade, int region);

    ResultVo delete_class(int id);

    // 学生管理的增删改查
    ResultVo show_student(String name, int pageNum);

    ResultVo search_student();

    ResultVo add_student(int id, String name, String num, String sex, String password);

    ResultVo edit_student(int id, int cid, String name, String num, String sex, String password);

    ResultVo delete_student(int id);

    // 教师的增删改查

    ResultVo show_teacher(String name, int pageNum);

    ResultVo search_teacher();

    ResultVo add_teacher(int id, String name, String num, String password);

    ResultVo edit_teacher(int id, String num, String name, String password, int did);

    ResultVo delete_teacher(int id);

    // 排课的增删改查
    ResultVo show_course(String name, int pageNum);

    ResultVo search_course();

    ResultVo add_course(int id, String name, int credit, String ttime, int sselect, int max, int grade, String location);

    ResultVo edit_course(int id, String name, int credit, String ttime, int sselect, int max, int grade, String location, int tid);

    ResultVo delete_course(int id);

    // 选课结果的增删改查
    ResultVo show_selectresult(String cname, String sname, int pageNum);

    ResultVo update_studentscore(int id, int score);

    ResultVo delete_selectresult(int id);
}
